<template>
	<div class="header">
		<div class="left">
			<span class="iconfont">&#xe614;</span>
		</div>
		<div class="conter">
			<span class="iconfont mp-single-line">&#xe63a;输入城市/景点/游玩主题</span>
			
		</div>
		<router-link to='/city'>
			<div class="right">
				{{city}}
				<span class="iconfont">&#xe615;</span>
			</div>
		</router-link>
	</div>
</template>
<script type="text/javascript">
	import {mapState} from 'vuex'
export default {
    computed:{
        ...mapState(['city'])
    }
}
</script>
<style type="text/css" lang="stylus" scoped>
@import '~css/var.styl'
	.header{
		display: flex;
		width: 100%;
		height: .88rem;
		background: #00bcd4;
		font-size:.28rem
	}
	.left{
    width: .4rem;
    line-height: .88rem;
    padding: 0 .2rem;
    color: #fff;
    font-size: .36rem;
    text-align: center;
	}
	.conter{
	box-sizing: border-box;
    position: relative;
    height: .6rem;
    margin: .14rem 0;
    background: #fff;
    line-height: .6rem;
    border-radius: .06rem;
    width: 5.4rem;
	}
	.mp-single-line{
	display: inline-block;
    overflow: hidden;
    position: absolute;
   	color: #e4e7ea;
    left: .3rem;
    top: 0;
    width: 3.6rem;
    white-space: nowrap;
    text-overflow: ellipsis;
	}
	.right{
	text-align: center;
    color: #fff;
    line-height: .88rem;
    margin-left: 0.2rem;
	}
</style>